Page({
  data: {
    swperList: [],
    current: 0,
  },

  change(e) {
    this.setData({
      current: e.detail.current,
    });
  },

  onLoad() {
    wx.request({
      url: "http://118.24.239.63:3001/api/swper/list",
      data: {},
      method: "GET",
      header: {
        "content-type": "application/json",
      },
      success: (res) => {
        if (res.data.success) {
          this.setData({
            swperList: res.data.data,
          });
        }
      },
    });
  },
});
